Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


SetTimeBaseFlags

The SetTimeBaseFlags function allows your application to set the contents of the control flags of a time base.

pascal void SetTimeBaseFlags (TimeBase tb, long timeBaseFlags);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
timeBaseFlags
Specifies the control flags for this time base. The following flags are defined. You may set only one flag to 1 (be sure to set unused flags to 0):
loopTimeBase
Indicates whether the time base loops. If you set this
flag to 1 and the rate is positive, the time base loops back and restarts from its start time when it reaches its stop time. If you set this flag to 1 and the rate is negative, the time base loops to its stop time. If you set the flag to 0, the movie stops when it reaches the end.
palindromeLoopTimeBase
Indicates whether the time base loops in a palindrome fashion. Palindrome looping causes a time base to move alternately forward and backward. Set this flag to 1 to cause the time base to loop in this manner.
ERROR CODES
None

SEE ALSO
You can retrieve the control flags of a time base by calling the GetTimeBaseFlags function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996